﻿<?php 

class Form_UploadFormSupplier extends Zend_Form
{
	public function init()
	{
		//$this->setAction('add') 
		//	 ->setMethod('post');
		$this->addElement('text','s_tenText',array(
            'required'   => true,
            'label'      => 'Hãng sản xuất:',
        ));
		$this->addElement('text','s_diachiText',array(
            'required'   => true,
            'label'      => 'Xuất xứ:',
        ));
		
		$this->addElement('text','s_linkText',array(
            'required'   => false,
            'label'      => 'Trang chủ:',
        ));		
		
		$element = new Zend_Form_Element_File('image');
		$element->setLabel('Upload ảnh nhà cung cấp:')
				->setDestination("/home/vhosts/shoppingcartcnpm.orgfree.com/public/images/suppliers");
		$element->addValidator('Extension',false,'jpg,png,gif');
		$this->addElement($element,'image');
		$this->addElement('submit','Tạo mới');
		$this->setAttrib('enctype', 'multipart/form-data');
	
	}
}


?>